package com.sunsharing.flow.model.node;

import com.sunsharing.flow.exe.ExecutionContext;

import java.io.Serializable;

/**
 * Created with IntelliJ IDEA.
 * User: criss
 * Date: 13-5-8
 * Time: 下午10:32
 * To change this template use File | Settings | File Templates.
 */
public abstract class Call implements Serializable {

    String id;
    String type;

    String output;
    String taskNodeId;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }


    public String getOutput() {
        return output;
    }

    public void setOutput(String output) {
        this.output = output;
    }

    public String getTaskNodeId() {
        return taskNodeId;
    }

    public void setTaskNodeId(String taskNodeId) {
        this.taskNodeId = taskNodeId;
    }

    /**
     *
     * @param context
     * @return 是否远程调用
     */
    abstract  public boolean call(ExecutionContext context);
}
